package com.ethink.warehouse.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.info.MateProduceCodeInfo;
import com.ethink.warehouse.api.request.MateProduceCodeQueryRequest;
import com.ethink.warehouse.common.entity.MateProduceCode;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * 商品生产批次号 Mapper接口
 *
 * @author default
 * @date 2022-11-22
 */
@Mapper
public interface MateProduceCodeMapper extends BaseMapper<MateProduceCode> {

    /**
     * 分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<MateProduceCodeInfo> queryMateProduceCode(Page buildPage, @Param("request") MateProduceCodeQueryRequest request);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    MateProduceCodeInfo getMateProduceCodeById(@Param("id") Long id);

    /**
     * 列表查询
     *
     * @param request
     * @return
     */
    List<MateProduceCodeInfo> listMateProduceCode(@Param("request") MateProduceCodeQueryRequest request);

    List<MateProduceCodeInfo> skuAndProduceCodeUnionQuery(@Param("requests") List<MateProduceCodeQueryRequest> requestList);
}